import service from '@/utils/request'

// @Tags WorkflowOwner
// @Summary 创建当前审批处理人
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.WorkflowOwner true "创建当前审批处理人"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /WorkflowOwner/createWorkflowOwner [post]
export const createWorkflowOwner = (data) => {
  return service({
    url: '/WorkflowOwner/createWorkflowOwner',
    method: 'post',
    data
  })
}

// @Tags WorkflowOwner
// @Summary 删除当前审批处理人
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.WorkflowOwner true "删除当前审批处理人"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /WorkflowOwner/deleteWorkflowOwner [delete]
export const deleteWorkflowOwner = (params) => {
  return service({
    url: '/WorkflowOwner/deleteWorkflowOwner',
    method: 'delete',
    params
  })
}

// @Tags WorkflowOwner
// @Summary 批量删除当前审批处理人
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除当前审批处理人"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /WorkflowOwner/deleteWorkflowOwner [delete]
export const deleteWorkflowOwnerByIds = (params) => {
  return service({
    url: '/WorkflowOwner/deleteWorkflowOwnerByIds',
    method: 'delete',
    params
  })
}

// @Tags WorkflowOwner
// @Summary 更新当前审批处理人
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.WorkflowOwner true "更新当前审批处理人"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /WorkflowOwner/updateWorkflowOwner [put]
export const updateWorkflowOwner = (data) => {
  return service({
    url: '/WorkflowOwner/updateWorkflowOwner',
    method: 'put',
    data
  })
}

// @Tags WorkflowOwner
// @Summary 用id查询当前审批处理人
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.WorkflowOwner true "用id查询当前审批处理人"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /WorkflowOwner/findWorkflowOwner [get]
export const findWorkflowOwner = (params) => {
  return service({
    url: '/WorkflowOwner/findWorkflowOwner',
    method: 'get',
    params
  })
}

// @Tags WorkflowOwner
// @Summary 分页获取当前审批处理人列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取当前审批处理人列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /WorkflowOwner/getWorkflowOwnerList [get]
export const getWorkflowOwnerList = (params) => {
  return service({
    url: '/WorkflowOwner/getWorkflowOwnerList',
    method: 'get',
    params
  })
}
